<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <link rel="stylesheet" href="../layui/css/layui.css"  media="all">
    <script src="../layui/layui.js"></script>
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>  
</head>
<style>
	.line {
	width: 80%;
    height: 1px;
    border-top: solid RGB(85, 175, 230) 1px;
    margin: 0 auto;
}
</style>
<script>
	function fanhui(){
		location.href="user.html"
	}
</script>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>教师级别调整</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="">   
      <input type="hidden" name="id"  value="" />
      <div class="form-group">
        <div class="label">
          <label>用户角色：</label>
        </div>
        <div class="field">
        <span style="color: red;">教师</span>              
          <div class="tips"></div>
        </div>
      </div> 
       <div class="form-group">
        <div class="label">
          <label>权限调整：</label>
        </div>
        <div class="field">
           <div id="test7" class="demo-tree"></div>
        </div>
      </div>      
     <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
        	
		<button type="button" onclick="addSubmit()" class="button bg-main icon-check-square-o">确认提交</button>
		<button type="button" class="button bg-main icon-check-square-o" onclick="fanhui()">取消</button>
        </div>
      </div>
    </form>
  </div>
</div>
<script>
  	layui.use(['tree', 'util'], function(){
  var tree = layui.tree
  ,layer = layui.layer
  ,util = layui.util

  //模拟数据2
 ,data = [{
                title: '资源管理'
                ,id: 1
                ,field: 'name1'
                ,children: [{
                    title: '视屏管理'
                    ,id: 11
                    ,field: 'name11'
                ,children:[{
                        title:'增加',
                        id:111,
                        field:''
                    },
                        {
                            title:'删除',
                            id:112,
                            field:''
                    },{
                            title:'修改',
                            id:113,
                            field:''
                        },{
                            title:'查询',
                            id:114,
                            field:''
                        }
                    ]
                },{
                    title: '书籍管理'
                    ,id: 12
                    ,children:[{
                        title:'增加',
                        id:121,
                        field:''
                    },
                        {
                            title:'删除',
                            id:122,
                            field:''
                        },{
                            title:'修改',
                            id:123,
                            field:''
                        },{
                            title:'查询',
                            id:124,
                            field:''
                        }
                    ]
                },{
                    title: '题库管理'
                    ,id: 13
                    ,children:[{
                        title:'增加',
                        id:131,
                        field:''
                    },
                        {
                            title:'删除',
                            id:132,
                            field:''
                        },{
                            title:'修改',
                            id:133,
                            field:''
                        },{
                            title:'查询',
                            id:134,
                            field:''
                        }
                    ]
                }
                ]
            },{
                title: '资金管理'
                ,id: 2
                ,field: ''
                ,children: [{
                    title: '结算单'
                    ,id: 21
                    ,field: ''
                    ,spread: true
                    ,children:[{
                        title:'增加',
                        id:211,
                        field:''
                    },
                        {
                            title:'删除',
                            id:212,
                            field:''
                        },{
                            title:'修改',
                            id:213,
                            field:''
                        },{
                            title:'查询',
                            id:214,
                            field:''
                        }
                    ]
                },{
                    title: '销售情况'
                    ,id: 22
                    ,field: ''
                    ,children:[{
                            title:'查询',
                            id:221,
                            field:''
                        }
                    ]
                },{
                    title:'盈利情况',
                     id:23
                    ,field: ''
                    ,children:[{
                            title:'查询',
                            id:231,
                            field:''
                        }
                    ]
                }
                ]
            },{
                title: '文件管理'
                ,id: 3
                ,field: ''
                ,children: [{
                    title: '上传文件'
                    ,id: 31
                    ,field: ''
                    ,fixed: true
               
                },{
                    title: '下载文件'
                    ,id: 32
                    ,field: ''
               
                }
                ]
            },{
                title: '用户管理'
                ,id: 4
                ,field: ''
                ,children:[{
                    title:'增加',
                    id:41,
                    field:''
                },
                    {
                        title:'删除',
                        id:42,
                        field:''
                    },{
                        title:'修改',
                        id:43,
                        field:''
                    },{
                        title:'查询',
                        id:44,
                        field:''
                    }
                ]
             }
            ]
                
  //开启复选框
  tree.render({
    elem: '#test7'
    ,data: data
    ,showCheckbox: true
  });
 

});
  </script>
</body></html>

